FROM java:8-jre
MAINTAINER <laughstorm@foxmail.com>
USER root
RUN wget http://dl.mycat.org.cn/mycat-web-1.0/Mycat-web-1.0-SNAPSHOT-20170102153329-linux.tar.gz
RUN tar -zxvf Mycat-web-1.0-SNAPSHOT-20170102153329-linux.tar.gz -C /
ENV MYCAT_WEB_HOME=/mycat-web
ENV PATH=$PATH:$MYCAT_WEB_HOME
WORKDIR $MYCAT_WEB_HOME
EXPOSE 8082
ENTRYPOINT ["sh","-c","nohup java -Xms1024m -Xmx1024m -Xmn128m -XX:PermSize=64m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:CMSInitiatingOccupancyFraction=70 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar start.jar"]